/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    height: 100vh;
}

/* 左侧树形列表样式 */
.tree-container {
    width: 300px;
    background-color: #f5f5f5;
    padding: 20px;
    border-right: 1px solid #ddd;
    overflow-y: auto;
    transition: all 0.3s ease;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.tree-list {
    list-style: none;
}

/* 树形节点样式 */
.tree-item {
    cursor: pointer;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tree-item:hover {
    background-color: rgba(24, 144, 255, 0.1);
}

.tree-item.active {
    background-color: #1890ff;
    color: white;
}

.toggle-icon {
    margin-right: 5px;
    cursor: pointer;
    width: 16px;
    display: inline-block;
}

.subtree {
    margin-left: 20px;
    list-style: none;
    padding-left: 0;
}

/* 收起展开相关样式 */
.tree-container.collapsed {
    width: 0;
    padding: 0;
    border: none;
}

.toggle-btn {
    position: fixed;
    left: 300px;
    top: 0;
    width: 20px;
    height: 30px;
    background-color: #1890ff;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.toggle-btn.collapsed {
    left: 0px;
    background-color: #1890ff99;
}

/* 右侧视频容器样式 */
.video-container {
    flex: 1;
    padding: 0;
    background-color: #fff;
}

.video-player {
    width: 100%;
    height: 100%;
}

.video-player iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .tree-container {
        position: fixed;
        height: 100vh;
        z-index: 999;
        background-color: #f5f5f5;
    }
}